<?php #//AJAX PHP PENNY AUCTION v.1.1

#///////////////////////////////////////////////////////////
#//  COPYRIGHT 2009 Aaron Helmlinger ALL RIGHTS RESERVED  //
#///////////////////////////////////////////////////////////
?>
<SCRIPT Language=Javascript>
function SubmitFriendForm(){
	document.friend.submit();
}
function ResetFriendForm(){
	document.friend.reset();
}
</SCRIPT>




<BR>
<table width="95%" border=0 cellpadding=4 cellspacing=1 align=center>
<TR>
<TD>
<FIELDSET><LEGEND>

<span class=PAGE_HEADER >&nbsp;Send Auction To A Friend&nbsp;</span> <A href=item.php?id=<? print $auction_id; ?>>Back To Auction Page</A>&nbsp;
</LEGEND>
<P>
<DIV class=EDITDATA3>



<TABLE WIDTH="100%" class="conten">
  <TR>
    <TD>
      <FORM NAME="friend" ACTION="friend.php" METHOD=POST>
        <TABLE WIDTH="90%" cellpadding="4" cellspacing="0">
          <!-- error message here -->
          <?
		  	if(!empty($TPL_error_text)){
		  ?>
		  <TR> 
            <TD width="40%" ALIGN=right></TD>
            <TD width="60%" align="left" class=errfont><? print $TPL_error_text; ?> </TD>
          </TR>
		  <?}?>
          <!--  -->
          <TR> 
            <TD ALIGN=right> <B><? print $MSG_017; ?></B> 
            </TD>
            <TD align="left"> <? print $TPL_item_title; ?> 	</TD>
          </TR>
          <!-- friend's name -->
          <TR> 
            <TD ALIGN=right> <B><? print $MSG_140; ?></B> 
            </TD>
            <TD align="left"><INPUT class=EDITDATA2 TYPE="TEXT" NAME="friend_name" SIZE="25" VALUE="<? print $TPL_friend_name_value; ?>"> 
            </TD>
          </TR>
          <!-- friend's email -->
          <TR> 
            <TD ALIGN=right> <B><? print $MSG_141; ?></B> 
            </TD>
            <TD align="left"><INPUT class=EDITDATA2 TYPE="TEXT" NAME="friend_email" SIZE="25" VALUE="<? print $TPL_friend_email_value; ?>"> 
            </TD>
          </TR>
          <!-- your name -->
        <?  
       if ($_SESSION["PHPAUCTION_LOGGED_IN"]) {   
              ?>
          <TR> 
            <TD ALIGN=right> <B><? print $MSG_142; ?></B> 
            </TD>
            <TD align="left"><INPUT TYPE="TEXT" class=EDITDATA2 NAME="sender_name" SIZE="25" VALUE="<? print $name; ?>"> 
            </TD>
          </TR>
       
       
       
          <!-- your email -->
          <TR> 
            <TD ALIGN=right> <B><? print $MSG_143; ?></B> 
            </TD>
            <TD align="left"><INPUT TYPE="TEXT" class=EDITDATA2 NAME="sender_email" SIZE="25" VALUE="<? print $email;  ?>"> 
            </TD>
          </TR>
          
           <? } ?>
         
         <?  if (!$_SESSION["PHPAUCTION_LOGGED_IN"]) {  ?> 
          <TR> 
            <TD ALIGN=right> <B><? print $MSG_142; ?></B> 
            </TD>
            <TD align="left"><INPUT TYPE="TEXT" class=EDITDATA2 NAME="sender_name" SIZE="25" VALUE=""> 
            </TD>
          </TR>
       
       
       
          <!-- your email -->
          <TR> 
            <TD ALIGN=right> <B><? print $MSG_143; ?></B> 
            </TD>
            <TD align="left"><INPUT TYPE="TEXT" class=EDITDATA2 NAME="sender_email" SIZE="25" VALUE=""> 
            </TD>
          </TR>
          
          <?  } ?>
          
          
          <!-- comment -->
          <TR> 
            <TD ALIGN=right VALIGN=TOP> <B><? print $MSG_144; ?></B> 
            </TD>
            <TD align="left"><TEXTAREA NAME="sender_comment" COLS="23" ROWS="6"><? print $TPL_sender_comment_value; ?></TEXTAREA> 
              <BR> <BR> 
			  <INPUT TYPE="hidden" NAME="id" VALUE="<? print $TPL_auction_id; ?>"> 
              <INPUT TYPE="hidden" NAME="item_title" VALUE="<? print $TPL_item_title; ?>"> 
              <INPUT TYPE="hidden" NAME="action" VALUE="sendmail">
              <INPUT TYPE="hidden" NAME="security" VALUE="<?php echo $_SESSION['security'];?>" />
			  <INPUT TYPE=submit NAME="" VALUE="<?=$MSG_5201?>" class=button /> 
              <INPUT TYPE=reset NAME="" VALUE="<?=$MSG_035?>" class=button /> </TD>
          </TR>
        </TABLE>
      </FORM><p></TD>
  </TR>
</TABLE>

 </div>
   </td>
                </tr>
            </table>